package com.yuanlp.shoppingmall.community;

import android.graphics.Color;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;

import com.yuanlp.shoppingmall.base.BaseFragement;

/**
 * Created by 原立鹏 on 2017/8/9.
 */

public class CommunityFragment extends BaseFragement {
        private TextView textView;
    /**
     * 强制子类实现他，让在oncreateview里显示这个布局。
     *
     * @return
     */
    @Override
    public View initview() {
        textView=new TextView(context);
        textView.setTextSize(25);
        textView.setTextColor(Color.RED);
        textView.setGravity(Gravity.CENTER);
        return textView;
    }

    @Override
    public void initData() {
        super.initData();
        textView.setText("社区界面");
    }
}
